<?php
	$id = $_POST['id'];
	$name = $_POST['name'];
	$prov = $_POST['provinsi'];
	$tarif = $_POST['tarif'];
	
	if(isset($_POST['submit'])){
		$sttmt = $koneksi->exec("update kabupaten set kabupaten='$name', id_provinsi = $prov, tarif = $tarif where id_kabupaten=$id");
	}
	
	$url_sukses='utama.php?module=mod_kabupaten';
	if($sttmt){
		echo "<meta http-equiv='refresh' content='0; url=$url_sukses'>";
		exit;
	}else{
		echo mysql_error();
	}
?>